#ifndef __SIG_TIMEOUT_H
#define __SIG_TIMEOUT_H

#include "stm32f10x.h"
#include "misc.h"
#include "board.h"
#include "kservice.h"
#include "cut.h"
#include "press.h"
#include "encode.h"
#include "reverse.h"
#include "power.h"
#include "uart_exchange.h"
#include "lib_string.h"
#include "hal_sig.h"

#define MAX_CUT_TIMEOUT      2
#define MAX_PRESS_TIMEOUT    2
#define MAX_ENCODE_TIMEOUT   2
#define MAX_POWER_TIMEOUT    2
//#define MAX_DISPLAY_TIMEOUT  3
//#define MAX_NET_TIMEOUT  		 3
//#define MAX_TIME_TIMEOUT  		 3
//#define MAX_DISPLAY_SCROLLTEXT 20

typedef volatile struct
{
	volatile unsigned int CutTimeout;
	volatile unsigned int PressTimeout;
	volatile unsigned int EncodeStopTimeout;
	volatile unsigned int PowerTimeout;
//	volatile unsigned int scrollTextTimeout;
//	volatile unsigned int TimeUpdateTimeout;
}SigTimeout;

void sig_time_init(void);

void sig_timeout(void);

#endif
